// 路由
export const webRouters = [{
  path: '/',
  name: 'Login',
  component: () =>
            import('../views/Login')
},
{
  path: '/home',
  meta: {
    requireAuth: true
  },
  component: () =>
            import('../views/Home'),
  children: [{
    // 欢迎界面
    path: '/',
    name: 'Welcome',
    meta: {
      requireAuth: true
    },
    component: () =>
                import('../views/subPages/Welcome')
  }, {
    // 用户列表
    path: 'user',
    name: 'User',
    meta: {
      requireAuth: true
    },
    component: () =>
                import('../views/subPages/User')
  }, {
    // 角色列表
    path: 'role',
    name: 'Role',
    meta: {
      requireAuth: true
    },
    component: () =>
                import('../views/subPages/Role')
  }, {
    // 资源列表
    path: 'resource',
    name: 'Resource',
    meta: {
      requireAuth: true
    },
    component: () =>
                import('../views/subPages/Resource')
  }, {
    // 站点管理
    path: 'substation',
    name: 'Substation',
    meta: {
      requireAuth: true
    },
    component: () =>
                import('../views/subPages/Substation')
  }]
}]
